package com.bgl.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgl.mall.pojo.Category;

import java.util.List;

/**
 * @author buguoliang
 */
public interface CategoryMapper extends BaseMapper<Category> {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> selectCategoryChildrenByParentId(Integer parentId);
}